package out1;
interface Swim
{
    default void run()
    {
        System.out.println(111);
    }



}
interface Run
{
    default void run()
    {
        System.out.println("接口里的方法");
    }
}
class Animal
{
    public void run()
    {
        System.out.println("超类中的方法");

    }
}
class Dog implements Run,Swim
{
    String name="wang";



    public void run()
    {
        System.out.println(111);
    }
}




/*class Dog extends Animal implements Run
{
    String name="wang";


}

/*
interface name
{
    void eat();
    void fly();
    void swim();
    int b=3;
}




interface Swim
{
   void swim();



}
interface Run
{
    void run();
}
interface Fly
{
    void fly();

}
class Animal
{

    String name;
    public Animal(String name)
    {
        this.name=name;
    }
    public void eat()
    {

        System.out.println(name+"正在吃饭");
    }
}
class Dog extends Animal implements Run,Swim
{
    //String name="wang";
    public Dog(String name)
    {
        super(name);
    }
    public void run()
    {

        System.out.println(name+"正在跑");
    }
    public void swim()
    {
        System.out.println(name+"正在游泳");
    }


}
class Bird extends Animal implements Fly
{
    //String name="xiao";
    public Bird(String name)
    {
       super(name);
    }
    public void fly()
    {
        System.out.println(name+"正在飞");
    }
}
class Fish extends Animal implements Swim
{
    //String name="qin";
    public Fish(String name)
    {
        super(name);
    }
    public void swim()
    {
        System.out.println(name+"正在游泳");
    }
}

 */

public class text6 {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.run();
        //dog.eat();
    }
}
